home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1097 / AMOSLIST / text0255.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.4 KB  |  37 lines

  1. On 17-Okt-20, Alastair Murray smashed the keyboard with:
  2. > >>Anyone have any AMOS code for doing a pattern match on a string?
  3. >> >>e.g. *.AMOS or #?.AMOS to see if a string contains .AMOS in it
  4. >> >>anywhere.
  5. >> >>Saves me writing it myself...
  6. >> 
  7. >> >A=Instr(<string to check>,<string to search for>)
  8. >> 
  9. >> THAT's NOT A PATTERN MATCH, but a character match
  10.  
  11. >Yes. A few people have misunderstood me I think.
  12. >This is what I need.
  13. >using: #?amos#?pro :as a pattern would respond
  14. >True for "amos pro" or "amos not pro" or "not amos pro" or "not amos
  15. >not pro" etc. As long as it has Anything, then the word "amos" then
  16. >anything else and then the word "pro" and nothing else.... get it?
  17.  
  18. >No-one programmed anything like this?
  19. >I know some extension use it (AMCAF) and you can access the Pattern
  20. >Match in a library somehow but I'd rather let it work with 1.3 dos as
  21. >well.
  22.  
  23. Just a note.
  24. Easylife + pattern.library runs on 1.3 too...
  25.  
  26. -- 
  27. Happy greetings, Yours..
  28. __________________________________________________________________________
  29.  /_  __/ __  / __  /\  ___\  __ \__  _\           aka. JENS VANG PETERSEN
  30.   / / / /_/ / ____/  \ \___\  __ \ \ \  Nyvej 8, DK-4450 Jyderup, Denmark
  31.  /_/ /_____/_/        \_____\_\ \_\ \_\             top_cat@post8.tele.dk
  32. --------------------------------------------------------------------------
  33.  CChheecckk yyoouurr dduupplleexx sswwiittcchh..
  34. --------------------------------------------------------------------------
  35.  
  36.  
  37.